// pages/PersonalCenter/PersonalCenter.js
Page({
  data: {
    cover: true,
    _RecommendationFriend: [{
      url: '../../static/image/PersonalCenter/HeadPortrait1.png',
      name: '小张',
      _class: '经管学院',
      percent: '90',
      style: 'm_l_24'
    }, {
      url: '../../static/image/PersonalCenter/HeadPortrait1.png',

      name: '小红',
      _class: '文学院',
      percent: '80'
    }, {
      url: '../../static/image/PersonalCenter/HeadPortrait1.png',
      name: '小马',
      _class: '体育学院',
      percent: '50'
    }, {
      url: '../../static/image/PersonalCenter/HeadPortrait1.png',
      name: '小刘',
      _class: '文学院',
      percent: '60',
      style: 'm_r_24'
    }]
  },

  onLoad: function(options) {
    wx.hideTabBar();
  },

  onShow: function() {
    wx.hideTabBar();
  },
  show: function() {
    this.setData({
      cover: false
    })
  },
  cancel: function() {
    this.setData({
      cover: true
    })
  },
  jump: function() {
    wx.navigateTo({
      url: 'RegistrationProcess/RegistrationProcess',
    })
  },
  jump_MyMessage: function() {
    wx.navigateTo({
      url: 'MyMessage/MyMessage',
    })
  },
  jump_MyRoommate: function() {
    wx.navigateTo({
      url: 'MyRoommate/MyRoommate',
    })
  },
  set_color: function() {
    wx.navigateTo({
      url: 'setColor/setColor',
    })
  },
  call: function(e) {
    // debugger;
    // var phone = e.currentTarget.dataset.currentphone;
    wx.makePhoneCall({
      phoneNumber: '10086'
    })
  }
})